from django.shortcuts import render

# Create your views here.
from drf_haystack.viewsets import HaystackViewSet
from haystack_demo.models import Goods
from haystack_demo.serializers import SearchSerialize


class SearchViewSet(HaystackViewSet):
    index_models = [Goods]
    serializer_class = SearchSerialize
